import Vue from "vue";
import VueRouter from "vue-router";
import allRoute from "./generateRoute/index"
///* webpackChunkName: "about" */ "../views/AboutView.vue"
Vue.use(VueRouter);
// console.log(allRoute)
const routes = [
  {
    path: "/login",
    component: () => import("@/pages/login")
  },
  {
    path: "/",
    component: () => import("@/pages/home"),
    // children: [
    //   ...allRoute
    // ]
  },
];

const router = new VueRouter({
  routes,
});

export default router;
